package com.sk.sourcecircle.activity.home.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.sk.sourcecircle.R;
import com.sk.sourcecircle.base.BaseActivity;
import com.sk.sourcecircle.dialog.CancelOrderFragment;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by sk on 2017/12/25.
 */

public class AlreadyPayActivity extends BaseActivity {
    @BindView(R.id.back)
    ImageView back;
    @BindView(R.id.cancel_action)
    TextView cancelAction;
    @BindView(R.id.event_bg)
    ImageView eventBg;
    @BindView(R.id.event_name)
    TextView eventName;
    @BindView(R.id.tv_time)
    TextView tvTime;
    @BindView(R.id.tv_location)
    TextView tvLocation;
    @BindView(R.id.tv_price)
    TextView tvPrice;
    @BindView(R.id.buy_num)
    TextView buyNum;
    @BindView(R.id.tv_total)
    TextView tvTotal;

    @Override
    protected int getContentView() {
        return R.layout.activity_already_pay;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @OnClick({R.id.back, R.id.cancel_action})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.cancel_action:
                CancelOrderFragment cancelOrderFragment = new CancelOrderFragment();
                cancelOrderFragment.setMyCallBack(AlreadyPayActivity.this);
                cancelOrderFragment.show(getFragmentManager(),"cancel");
                break;
        }
    }

    @Override
    public void cancelOder(String string) {
        super.cancelOder(string);
    }
}
